#ifndef __SCNS_OV2640_H__
#define __SCNS_OV2640_H__

#include "ScnsConfig.h"

#if defined(SCNS_OV2640_ENABLE)&&SCNS_OV2640_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspOv2640.h"
#include "ScnsImage.h"

extern ScnsStatus scnsOv2640Init(ScnsOv2640Enum ov2N);
extern void scnsOv2640VsyncInterrupt(ScnsOv2640Enum ov2N);
extern void scnsOv2640DmaFinishInterrupt(ScnsOv2640Enum ov2N);
extern ScnsStatus scnsOv2640GetImage(ScnsOv2640Enum ov2N,ScnsImage*image);
extern void scnsOv2640SetFinish(ScnsOv2640Enum ov2N,const ScnsImage*image);
extern const volatile uint8 * scnsOv2640GetBufStatus(ScnsOv2640Enum ov2N);
extern ScnsStatus scnsOv2640Ignore(ScnsOv2640Enum ov2N);

#endif
#endif
